<template>
	<ul class="bottom">
		<li>
			<router-link to="/">
				<img :src="homeUrl"/>
				<h3>首页</h3>
			</router-link>
		</li>
		<li>
			<router-link to="/order">
				<img :src="orderUrl"/>
				<h3>订单</h3>
			</router-link>
		</li>
		<li>
			<router-link to="/user">
				<img :src="userUrl"/>
				<h3>我的</h3>
			</router-link>
		</li>
	</ul>
</template>

<script>
	export default{
		name:'Buttom',
		props:['propurl'],
		data(){
			return{
				homeUrl:'',
				orderUrl:'',
				userUrl:''
			}
		},
		mounted() {
			this.homeUrl=this.propurl[0]
			this.orderUrl=this.propurl[1]
			this.userUrl=this.propurl[2]
		}
	}
</script>

<style scoped>
	a{
		text-decoration: none;
		color: #000000;
	}
	.bottom{
		position: fixed;
		left: 0;
		bottom: 0;
		width: 100%;
		height: 1.6rem;
		background: white;
		z-index: 100;
		display: flex;
		align-items: center;
		justify-content: space-around;
		
	}
	.buttom li{
		width: 30%;
		text-align: center;
		height: 95%;
		display: inline;
	}
	.bottom li img{
		width: 0.7rem;
		height: 0.7rem;
	}
	.bottom li h3{
		line-height: 0.7rem;
	}
</style>
